//
// Decompiled by Jadx - 420ms
//
package gc;

import android.text.TextUtils;
import androidx.activity.b;
import fn.y;
import gf.z;
import me.plusne.common.Http.Hook;
import me.plusne.common.Json.JsonHookStatic;

public final class t implements Runnable {
    public final int a;
    public final String b;
    public final String c;

    public t(int i, String str, String str2) {
        this.a = i;
        this.b = str;
        this.c = str2;
    }

    @Override
    public final void run() {
        int i = this.a;
        String str = this.b;
        String str2 = this.c;
        switch (i) {
            case 0:
                if (str2 == null) {
                    b.u("没有提交内容");
                    return;
                }
                StringBuilder sb = new StringBuilder();
                JsonHookStatic jsonHookStatic = y.by;
                sb.append(jsonHookStatic.getActivity().getCacheDir().getPath());
                sb.append("/");
                sb.append(System.currentTimeMillis());
                sb.append(".mp3");
                String sb2 = sb.toString();
                if (TextUtils.isEmpty(jsonHookStatic.getSpeak().getLanguage())) {
                    jsonHookStatic.getSpeak().setLanguage("云扬（男 - 年轻人）");
                    jsonHookStatic.getSpeak().setVoice("zh-CN-YunyangNeural");
                    jsonHookStatic.getSpeak().setStyle("0");
                    jsonHookStatic.getSpeak().setRate(100);
                    jsonHookStatic.getSpeak().setPitch(50);
                }
                androidx.appcompat.app.t.c().j(((Hook) dq.b.b(Hook.class)).Speak(jsonHookStatic.getSpeak().getLanguage(), jsonHookStatic.getSpeak().getVoice(), str2, jsonHookStatic.getSpeak().getStyle(), jsonHookStatic.getSpeak().getRate() - 100, jsonHookStatic.getSpeak().getPitch() - 50).subscribeWith(new y(jsonHookStatic.getActivity(), sb2, str)));
                return;
            case 1:
                int i2 = z.d.a;
                gf.y.ct(gf.y.cs(str, str2));
                return;
            default:
                int i3 = z.d.a;
                gf.y.ct(gf.y.cs(str, str2));
                return;
        }
    }
}
